package com.spark.incoicings.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.spark.incoicings.vo.CustomerVO;
import com.spark.invoicings.entity.SaleCustomer;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface CustomerMapper extends BaseMapper<SaleCustomer> {

    /**
     * 带条件查询所有客户
     * 分页查询
     * @param map
     * @return
     */
    List<SaleCustomer> selectCustomerAll(Map<String,Object> map);

    /**
     * 查询数据字典中客户数据
     * @param id
     * @return
     */
    CustomerVO selectCustomerVo(Integer id);

}